package lt.vin.exaatto.client.service;

import lt.vin.exaatto.shared.Chat;
import lt.vin.exaatto.shared.UserInformation;

import com.google.gwt.user.client.rpc.AsyncCallback;

/**
 * The async counterpart of <code>GreetingService</code>.
 */
public interface RpcServiceAsync {

	void getUserInformation(AsyncCallback<UserInformation> callback);

	void createNewChat(String chatName, AsyncCallback<Chat> callback);

	void addChatMember(String chatId, String member, AsyncCallback<Void> callback);

	void addChatManager(String chatId, String manager, AsyncCallback<Void> callback);

	void deleteChat(String chatId, AsyncCallback<Void> callback);

	void removeChatMember(String chatId, String member, AsyncCallback<Void> callback);

	void removeChatManager(String chatId, String manager, AsyncCallback<Void> callback);
	
}
